# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: ddddOcr_图片识别.py
@time: 2021/9/5 13:33
'''

import ddddocr

ocr = ddddocr.DdddOcr()
# with open(r"D:\pacong\TulingPaCong\day19验证码生成及绕过\images\IO6K.jpg", 'rb') as f:
#      img_bytes = f.read()
import requests

res = requests.get('http://app.gjzwfw.gov.cn/jmopen/verifyCode.do?width = 100 & height = 55 & random = 0.3259902813410114').content
# print(res.content)
red = ocr.classification(res)
print(red)